<?= $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>  


  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title><?=$this->placeholder('title') ?></title> 
   <?= $this->headLink()->appendStylesheet('/public/themes/prime/css/style.css') ?>
  <?= $this->headLink()->appendStylesheet('/public/themes/prime/css/jsddm.css') ?>
  <!-- <?= $this->headLink()->appendStylesheet('/public/themes/prime/css/expandablemenu.css') ?>-->  
  <!--   <script type="text/javascript" src="/public/library/firebug/firebugx.js"></script>  
TODO: remove firebugx -->
<!-- TODO: Remove this from static  loading. Loading dynamically -->
  <script type="text/javascript" src="/public/library/fckeditor/fckeditor.js"></script>
  <script type="text/javascript" src="/public/library/jquery/jquery.js"></script>
  <!-- TODO: use this http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js -->
  <script type="text/javascript" src="/public/themes/prime/js/ddm.js"></script>
  <script type="text/javascript" src="/public/themes/prime/js/expandablemenu.js"></script>
  <script src="/public/library/jquery/thickbox/jquery.DOMWindow.js" type="text/javascript"></script>

<meta name="description" content="<?=$this->placeholder('description') ?>">
<meta name="keywords" content="<?=$this->placeholder('keywords') ?>">
</head> 
<body>
<div style="width:1024px;">

<?  
    $holderWeights = Zend_Registry::get('holderWeights');
    asort ($holderWeights );
?>

<div id="header" class="region0">
    <div id="header-logo" style="float: left;color:#CD8840;font-size:29px;padding-top:5px;margin:5px;font-family:sans-serif;font-weight:bold;">
        <!-- <img src=" /public/themes/prime/images/herevn.jpg" alt="Here Vietnam" /> -->
        <a href="<?=$this->hvnUrl(array('module'=>'home', 'controller'=>'index', 'action'=>'index')) ?>"><font color="green">H</font>ere<font color="red">Vietnam</font></a>
    </div>
    
        <div id="header-navigation" style="float: right">

         <?$region1BoxId = 0;    
         foreach ($holderWeights as $k=>$v) :?>
            <?if (strpos ($k, 'region1') === 0) :?>
                <? $region1BoxId ++;?>
                <? if ($region1BoxId === 1) :?>
                <div class='region1'>
                <?endif?>
                    <div  class='box1' id="<?=$k.'_weight'.$v?>">
                    <?echo $this->placeholder($k) ;?>
                    </div>
            <?endif ?>
        <? endforeach ?>
        
        <? if ($region1BoxId > 0) :?>
                 </div>
         <?endif?>

    </div> <!-- header-nav -->
</div> <!-- header -->

<div style="clear:both"/>


<div style="clear:both"/>
<div class="region2">
    <ul id="jsddm">
    
        <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'article'),'nocontroller')?>">Articles</a>
            <ul>
                <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'article'),'nocontroller')?>">List</a></li>
                <li><a href="<?=$this->hvnUrl(array('action' => 'new', 'module' => 'article'),'nocontroller')?>">New</a></li>
            </ul>
        </li>

        <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'place'),'nocontroller')?>">Places</a>
            <ul>
                <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'place'),'nocontroller')?>">List</a></li>
                <li><a href="<?=$this->hvnUrl(array('action' => 'new', 'module' => 'place'),'nocontroller')?>">New</a></li>
            </ul>
        </li>

        <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'event'),'nocontroller')?>">Events</a>
            <ul>
                <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'event'),'nocontroller')?>">List</a></li>
                <li><a href="<?=$this->hvnUrl(array('action' => 'new', 'module' => 'event'),'nocontroller')?>">New</a></li>
            </ul>
        </li>

        <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'tour'),'nocontroller')?>">Tours</a>
            <ul>
                <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'tour'),'nocontroller')?>">List</a></li>
                <li><a href="<?=$this->hvnUrl(array('action' => 'new', 'module' => 'tour'),'nocontroller')?>">New</a></li>
            </ul>
        </li>

        <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'news'),'nocontroller')?>">News</a>
            <ul>
                <li><a href="<?=$this->hvnUrl(array('action' => 'search', 'module' => 'news'),'nocontroller')?>">List</a></li>
                <li><a href="<?=$this->hvnUrl(array('action' => 'new', 'module' => 'news'),'nocontroller')?>">New</a></li>
            </ul>
        </li>

        <li><a href="/en/category/index/search">Categories</a>
            <ul>
                <li><a href="/en/category/index/search">List</a></li>
                <li><a href="/en/category/index/new">New</a></li>
                <li><a href="/en/category/index/module-category">Mod-Category</a></li>
            </ul>
        </li>
        
        <li><a href="/en/block/index/search">Blocks</a>
            <ul>
                <li><a href="/en/block/index/search">List</a></li>
                <li><a href="/en/block/index/new">New</a></li>
            </ul>
        </li>

        <li><a href="<?=$this->hvnUrl(array('action' => 'list'),'usersearch')?>">Users</a>
            <ul>
                <li><a href="<?=$this->hvnUrl(array('action' => 'login'),'account')?>"  >Login</a></li> 
                <li><a href="<?=$this->hvnUrl(array('action' => 'logout'),'account')?>"  >Logout</a></li>
                <li><a href="<?=$this->hvnUrl(array('action' => 'register'),'account')?>" >Register</a></li>
                <li><a href="/en/user/role/list">List roles</a></li>
                <li><a href="/en/user/role/new">New role</a></li>
                <li><a href="<?=$this->hvnUrl(array('action' => 'list'),'usersearch')?>">List users</a></li>
                <li><a href="<?=$this->hvnUrl(array('action' => 'search'),'usersearch')?>">Search</a></li>
            </ul>
        </li>
    </ul>
</div>

<div style="clear:both"/>

<div id="bodycontent">
	<div id="leftmenu">
            <!-- 
            <dl>
            
                <dt><a href="/en/article/index/search">Article</a></dt>
                <dd id="article_lm">
                <ul>
                    <li><a href="/en/article/index/search">List</a></li>
                    <li><a href="/en/article/index/new">New</a></li>
                </ul>
                </dd>
                
                <dt><a href="#">Block</a></dt>
                <dd id="block_lm">
                <ul>
                    <li><a href="/en/block/index/search">List</a></li>
                    <li><a href="/en/block/index/new">New</a></li>
                </ul>
                </dd>
                
                
                <dt><a href="#">Category</a></dt>
                <dd id="category_lm">
                <ul>
                    <li><a href="/en/category/index/search">List</a></li>
                    <li><a href="/en/category/index/new">New</a></li>
                    <li><a href="/en/category/index/module-category">Module Category</a></li>
                </ul>
                </dd>
                

                <dt><a href="#">Comment</a></dt>
                <dd id="comment_lm">
                <ul>
                    <li><a href="/en/comment/index/search">List</a></li>
                    <li><a href="/en/comment/index/new">New</a></li>
                </ul>
                </dd>


                <dt><a href="#">Place</a></dt>
                <dd id="place_lm">
                <ul>
                    <li><a href="/en/place/index/search">List</a></li>
                    <li><a href="/en/place/index/new">New</a></li>
                </ul>
                </dd>

                <dt><a href="#">User</a></dt>
                <dd id="user_lm">
                <ul>
                    <li><a href="<?=$this->hvnUrl(array('action' => 'login'),'account')?>" >Login</a></li>
                    <li><a href="<?=$this->hvnUrl(array('action' => 'register'),'account')?>" >Register</a></li>
                    <li><a href="<?=$this->hvnUrl(array('action' => 'list'),'usersearch')?>" >List users</a></li>
                    <li><a href="<?=$this->hvnUrl(array('action' => 'search'),'usersearch')?>">Search</a></li>
                    <li><a href="/en/user/role/list">List roles</a></li>
                    <li><a href="/en/user/role/new">New Role</a></li>
                    <li><a href="<?=$this->hvnUrl(array('action' => 'logout'),'account')?>">Logout</a></li>
                </ul>
                </dd>
                
            </dl> -->

        <? foreach ($holderWeights as $k=>$v) :?>
            <?if (strpos ($k, 'region3') === 0) :?>
            <div  class='box' id="<?=$k?>">
            <?echo $this->placeholder($k) ;?>
            </div>
            <?endif ?>
        <? endforeach ?>    
         
	</div>
    <!-- main content -->
	<div style="width:75%;float:left;text-align:left;padding:5px 0px 5px 5px">
	<?//TODO: remove =$this->layout()->content ?>
    

    <? 
     $region4BoxId = 0;    
     foreach ($holderWeights as $k=>$v) :?>
        <?if (strpos ($k, 'region4') === 0) :?>
        <? $region4BoxId ++;?>
        <? if ($region4BoxId === 1) :?>
        <div class='region4'>
        <?endif?>
            <div  class='box' id="<?=$k.'_weight'.$v?>">

            <?echo $this->placeholder($k);?>
        </div>
        <?endif ?>
    <? endforeach ?>
        <? if ($region4BoxId > 0) :?>
        </div>
        <?endif?>
    
	</div>
    
<div style="width:20%;float:right;text-align:left;" class="right_sidebar">
        <? 
        	 $region5BoxId = 0;    
         	foreach ($holderWeights as $k=>$v) :?>
        <?if (strpos ($k, 'region5') === 0) :?>
        <? $region5BoxId ++;?>
        <? if ($region5BoxId === 1) :?>
        <div class='region5'>
        <?endif?>
            <div  class='box' id="<?=$k.'_weight'.$v?>">

            <?echo $this->placeholder($k) ;?>
        </div>
        <?endif ?>
    		<? endforeach ?>
        <? if ($region5BoxId > 0) :?>
        </div>
        <?endif?>
        
</div>    
</div> <!-- bodycontent-->

<div style="clear:both"/>

<div id="footer" style="width:100%; background-color:grey;text-align:center;font-weight:bold;color:green">
	<?=$this->layout()->currentPage ?>:
	<?
	$date = new Zend_Date();
    echo $date->getDate();
	 ?>
     
</div>


<br/>

</div>
</body>
</html>
